package algorithm_primary.studyMySelf.class01;

/**
 * @author 衡孟浩
 * @date 2022/9/28 22:45
 */
public class Code01_PrintBinary {
    public static void main(String[] args) {
             jinzi(3);
        System.out.println("00000000000000000000000000000011".length());
    }
    // 0000 0000 0000 0000 0000 0000 0011
    // 0000 0000 0000 0000 0000 0000 0001
    public static void jinzi(int num){
        for (int i = 31; i >= 0; i--) {
            int a = (num & (1<<i)) == 0 ? 0:1;
            System.out.print(a);
        }
    }
}
